﻿namespace Microsoft.Office.PowerPoint.STAMP.Core
{
    /// <summary>
    /// An inch
    /// </summary>
    public class Inch
    {
        private readonly double _value;

        /// <summary>
        /// Initializes a new instance of the <see cref="Inch"/> class.
        /// </summary>
        /// <param name="value">The value.</param>
        public Inch(double value)
        {
            _value = value;
        }

        /// <summary>
        /// Toes the pixels.
        /// </summary>
        /// <returns></returns>
        public int ToPixels()
        {
            return (int) (_value * Properties.Settings.Default.PointsPerInch);
        }
    }
}